﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes move {
            0% {
                transform: translateX(0px);
            }

            100% {
                transform: translateX(1000px);
            }
        }

        img {
            width: 300px;
            border: 5px solid pink;
            border-radius: 50%;

            /* 方法名 */
            /* animation-name: move; */

            /* 动画运行时间 */
            /* animation-duration: 3s; */

            /* linear:线性；动画匀速移动 */
            /* animation-timing-function: linear; */

            /* 何时开始 1s 后 */
            /* animation-delay: 1s; */

            /* 被播放的次数 infinite：一直播放 */
            /* animation-iteration-count: infinite; */

            /* 动画在下一周期是否逆向播放 alternate:逆向 normal：正常 */
            /* animation-direction: alternate; */

            /* 动画结束后状态 forwards:保持结束状态 ; backwards : 回到起始 */
            /* animation-fill-mode: forwards; */

            /* animation 缩写 */
            /* animation: name duration timing-function delay iteration-count direction fill-mode; */
            /* animation: move 3s linear 0s 3 alternate; */
            animation: move 3s linear 3 alternate;
        }

        img:hover {
            /*  
                这个属性要放在鼠标移入事件中
                paused: 运行中的动画鼠标移入后暂停; running:默认值 
              */
            animation-play-state: paused;
        }
    </style>
</head>

<body>
    <img src="/images/mkM_014.png" alt="">

</body>

</html>